package com.boot.mall.cart.service;

import com.boot.mall.cart.vo.Cart;
import com.boot.mall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {

    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    Cart getCart() throws ExecutionException, InterruptedException;

    List<CartItem> getCartItemsFromRedis(String cartKey);

    void checkCartItem(Long skuId, Integer isChecked);

    void changeItemCount(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItem> getCheckItems(Long memberId);
}
